from django.db import models

# Create your models here.

class subject(models.Model):
    id=models.AutoField(primary_key=True)
    subName=models.CharField(max_length=50)

class result(models.Model):
    id=models.AutoField(primary_key=True)
    stuName=models.CharField(max_length=100)
    grade=models.CharField(max_length=100)
    sub=models.ForeignKey(to='subject',on_delete=models.CASCADE)